package com.whd.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


@TableName("house")
@Data
public class House {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String houseAddress;
    private String type;
    private Integer suitableNumber;
    private Integer rent;
    private Integer isAble;
    private Integer ownerId;
    private Integer tenantId;
    private String photo;
    // TableField注解表示数据库不存在的字段，而Java中需要使用，加上这个注解就不会报错
    @TableField(exist = false)
    private String name;
}
